package com.example.course.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "user_id",type = IdType.AUTO)
    private Long userId;

    /**
     * 账号
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 盐
     */
    @TableField(value = "user_salt")
    private String userSalt;

    /**
     * 密码
     */
    @TableField(value = "user_password")
    private String userPassword;

    /**
     * 原密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 昵称
     */
    @TableField(value = "user_nick")
    private String userNick;

    /**
     * 学号
     */
    @TableField(value = "student_id")
    private Long studentId;

    /**
     * 逻辑删除
0：未删除
1：已删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}